﻿using System.Threading;
using com.fukefu.sql;

namespace com.fukefu.report
{
    public partial class StatisticsForm : BaseForm
    {
        string cmd;
        public StatisticsForm(string title, string cmd)
        {
            InitializeComponent();
            this.Text = title;
            this.cmd = cmd;
            new Thread(new ThreadStart(ShowDate)).Start();
        }
        //显示数据
        private void ShowDate()
        {
            SqlServerOperate sql = new SqlServerOperate();
            while (true)
            {
                this.CreateListView(ref sql, "listView1", cmd);
                Thread.Sleep(5 * 1000);
            }
        }
    }
}
